home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / fixtree3.arc / READ.ME < prev    next >
Text File  |  1988-01-24  |  2KB  |  58 lines

  1. This archive contains a utility to embed a resource file in a program,
  2. and still use all the "rsrc_.." calls to get and set items. The calling
  3. sequence is demonstrated in the file FXTRTST.C and merely consists of
  4. calling the entry point "fix_tree" with the symbol "NUM_TREE" as a parameter.
  5.  
  6. Usual coding techniques (for anything but the smallest resources) would be
  7. to create a module that includes the resource header file (.H) and the
  8. resource source code file (.RSH). In addition a single procedure would be coded
  9. to call the "fix_tree(NUM_TREE)" entry. This technique is used to cut
  10. down on the size of the assembler temporary files.
  11.  
  12. Good Luck!
  13.  
  14. Guy L. Albertelli
  15. 4142 Highland Dr.
  16. Mogadore, OH  44260
  17.  
  18. ------------------------------------------------------------------------------
  19.  
  20. The file FIXTREE.C has been modified by me, Chor-ming Lung to make it works
  21. with Mark Williams C and Megamax C.
  22. The file SAMPLE.RSH included does not come out right with MWC or MMC. I use
  23. RCS to regenerate SAMPLE.C. It works with MWC and MMC now!
  24.  
  25. Chor-ming Lung
  26. 33 Garden St #3
  27. Boston, MA 02114
  28.  
  29. ------------------------------------------------------------------------------
  30.  
  31. A minor fix to fixtree.c in order to make it work under Megamax C. See notes
  32. in fixtree.c for information.
  33.  
  34. Also I include the dialog program which comes with Megamax C as an example of
  35. doing dialog stuff. To change the program to work with fixtree is fairly
  36. simple. Note that you will need to use MAKERSH to convert the RSC file into
  37. RSH file since the Megamax RCS does not generate one. Also you will need to
  38. manually edit the RSH file if there is null array being initialized as this
  39. one:
  40.  
  41. rs_frstr[] = {};
  42.  
  43. Megamax compiler(V1.1) does not like this. Change it to:
  44.  
  45. rs_frstr[];
  46.  
  47. will do. Someone who has time may want to change the MAKERSH program which
  48. is written in MWC.
  49.  
  50.  
  51. Jinfu Chen
  52. 445 S. Dobson Rd., Apt. 2022
  53. Mesa, AZ 85202
  54.  
  55. GEnie:  J.Chen
  56. Arpanet:  Jinfu_Jinfu_Chen@cpu.portal.com
  57.  
  58.